package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import java.util.List;
import java.util.Map;

public interface TravelCommendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TravelCommend travelCommend);

    TravelCommend selectByPrimaryKey(Long id);

    List<TravelCommend> selectAll(Long id);

    int updateByPrimaryKey(TravelCommend travelCommend);

    /**
     * 高查及分页
     * @param qo
     * @return
     */
    List<TravelCommend> selectForList(QueryObject qo);

    /**
     * app端的推荐展示
     * @param qo
     * @return
     */
    List<Map<String,Object>> selectForAppList(QueryObject qo);



}